package com.tjian.fafa.user.base.mainBody;

import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;

import com.tjian.fafa.user.R;

/**
 */
public class ChooseRoomPage
{

    private static ChooseRoomPage mInstance;

    private View mViewOfPage;
    private ListView mListview;
    private Context mContext0;
    private Button id_add_iconButton;

    public static ChooseRoomPage getInstance()
    {
        if (mInstance == null)
        {
            mInstance = new ChooseRoomPage();
        }
        return mInstance;
    }

    private ChooseRoomPage()
    {
    }

    public void onInit(View viewOfPage, Context context0)
    {
        mViewOfPage = viewOfPage;
        mContext0 = context0;
    }

    public void onCreate()
    {

        id_add_iconButton = (Button) mViewOfPage.findViewById(R.id.id_add_icon);
        id_add_iconButton.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                MainBodyActivity.getInstance().gotoAddFirendActivity();
            }
        });

        mListview = (ListView) mViewOfPage.findViewById(R.id.cb0ChooseRoomList);


        MainBodyActivity.getInstance().gotoPage(MainBodyActivity.mTabNumContacts, MainBodyActivity.mPageContactsList);

    }

}
